package com.xxx.sso.entity;

import com.xxx.sso.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.validation.constraints.NotBlank;

/**
 * 服务
 * @author caiwl
 * @date 2020/4/29 16:08
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class Service extends BaseEntity {
    @NotBlank(message = "服务编号不能为空")
    private String code;
    @NotBlank(message = "服务名称不能为空")
    private String name;
}
